package com.yic.module.device.controller.admin.inspectionPlanJob.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.yic.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 巡检计划与任务关联 Response VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class InspectionPlanJobRespVO extends InspectionPlanJobBaseVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime createTime;

    @Schema(description = "计划名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String name;

    @Schema(description = "开始日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime startDate;

    @Schema(description = "结束日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime endDate;

    @Schema(description = "计划周期", requiredMode = Schema.RequiredMode.REQUIRED)
    private String cycle;

    @Schema(description = "提醒时间(时)", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal reminderTime;

    @Schema(description = "预计用时(时)", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal estimatedTime;

}
